import { postRequest, getRequest } from '@/api/easyRequest'

export const login = function (params: any) {
    return postRequest('/login', params)
}

export const getUserInfo = function (token: string) {
    return postRequest('/userInfo', { token })
}

export const logout = () => {
    return getRequest('/logout')
}
